<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/3
  Time: 13:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <title>编辑${empty albumId?"智慧对课":"红领巾电台"} </title>

    <script type="text/javascript" src="/static/js/admin/media/media.js"></script>

</head>
<body>

<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add" enctype="multipart/form-data">
        <input id="tid" name="tid" value="${media.tid}" type="hidden">
        <input id="albumId" name="albumId" value="${albumId}" type="hidden">
        <input id="mediaType" name="mediaType" value="${empty albumId?1:2}" type="hidden">
        <input id="columnType" name="columnType" value="${empty albumId?1:2}" type="hidden">
      <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>标题：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input value="${media.mediaName}" id="title" name="mediaName" class="input-text">

            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>内容：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea id="info"cols="80" rows="20" name="mediaIntro" class="textarea">${media.mediaIntro} </textarea>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>图片：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input class="input-text upload-url" value="${media.mediaPic}" type="text" name="resourceUrl" id="photo" readonly nullmsg="请添加附件！" style="width:200px">
                <a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                <input type="file" multiple name="location" class="input-file" style="left: 0;font-size: 1.5em">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>图片尺寸：</label>
            <div class="formControls col-xs-8 col-sm-9">


            <span style="color: red;" class="select-box" >    图片尺寸：${empty albumId?"194px*110px":"127px*127px"}</span>

            </div>
        </div>




        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>排序：</label>
            <div class="formControls col-xs-8 col-sm-9">


                <input id="sort" name="sort" value="${media.sort==null?"9999":media.sort}" class="input-text"/>

            </div>
        </div>



        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>播放路径：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input value="${media.mediaUrl}" id="mediaUrl" name="mediaUrl" class="input-text">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>播放时长：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input value="${media.duration}" id="duration" name="duration" class="input-text">
            </div>
        </div>



        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="button" id="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<%@ include file="/common/include-footer.jsp" %>
</body>
</html>
